from distutils.core import setup
import py2exe
import shutil

# Remove the build folder
shutil.rmtree("build", ignore_errors=True)

# do the same for dist folder
shutil.rmtree("dist", ignore_errors=True)

setup(
    windows = ['ScoresArchiver.pyw'],
    zipfile = None,
    data_files = ['tutorial.db','gui.xrc'],
    options = {
    "py2exe": {
        "compressed": 1,
        "optimize": 2,
        "dll_excludes": ["MSVCP90.dll",],
        "packages": ["sqlalchemy.databases.sqlite"]
            }
        }
    )
